<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="./axios.js"></script>
    <script>
       axios.defaults.baseURL = 'http://www.itcbc.com:3006'
     let p1 = axios.get('/api/province')

let p2 = axios.get('/api/city', { params: { pname: '河南省' } })

let p3 = axios.get('/api/county', { params: { pname: '河南省', cname: '许昌市' } })

    p1.then(result => {
      console.log(result.data)
      return p2
    }).then(result => {
      console.log(result.data)
      return p3
    }).then(result => {
      console.log(result.data)
    }).catch(error => {
      // console.dir(error)
      console.log(error.response.data.message)
    })
    </script>
</body>
</html>